home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 16 / AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso / pd / anwendungen / rtgmaster_dev / includes / vbcc-warpos / rtgmaster / rtgsublibs.h < prev    next >
C/C++ Source or Header  |  1998-06-22  |  4KB  |  297 lines

  1. /*
  2. **     $VER: rtgsublibs.h 1.008 (29 Jul 1997)
  3. */
  4.  
  5. #ifndef RTGSUBLIBS_H
  6. #define RTGSUBLIBS_H TRUE
  7.  
  8. #ifndef UTILITY_TAGITEM_H
  9. #include "utility/tagitem.h"
  10. #endif
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #include "exec/types.h"
  14. #endif
  15.  
  16. #ifndef EXEC_NODES_H
  17. #include "exec/nodes.h"
  18. #endif
  19.  
  20. #define rtg_Dummy TAG_USER
  21.  
  22. #define rtg_Buffers (rtg_Dummy + 0x01)
  23.  
  24. #define rtg_Interleaved (rtg_Dummy + 0x02)
  25.  
  26. #define rtg_Draggable (rtg_Dummy + 0x03)
  27.  
  28. #define rtg_Exclusive (rtg_Dummy + 0x04)
  29.  
  30.  
  31. #define ARGB32 1L
  32. #define RGB24  2L
  33. #define RGB16  4L
  34. #define RGB15  8L
  35. #define ABGR32 16L
  36. #define BGR24  32L
  37. #define BGR16  64L
  38. #define BGR15  128L
  39. #define RGBA32 256L
  40. #define LUT8   512L
  41. #define GRAFFITI 1024L
  42. #define RGB15PC  2048L
  43. #define BGR15PC  4096L
  44. #define RGB16PC  8192L
  45. #define BGR16PC  16384L
  46. #define BGRA32   32768L
  47. #define Planar1  1L
  48. #define Planar2  2L
  49. #define Planar3  4L
  50. #define Planar4  8L
  51. #define Planar5  16L
  52. #define Planar6  32L
  53. #define Planar7  64L
  54. #define Planar8  128L
  55. #define Planar1I 1<<16L
  56. #define Planar2I 1<<17L
  57. #define Planar3I 1<<18L
  58. #define Planar4I 1<<19L
  59. #define Planar5I 1<<20L
  60. #define Planar6I 1<<21L
  61. #define Planar7I 1<<22L
  62. #define Planar8I 1<<23L
  63. #define PlanarEHB 1<<15L
  64. #define PlanarEHBI 1<<31L
  65.  
  66. #define rtg_ZBuffer (rtg_Dummy + 0x07)
  67.  
  68.  
  69. #define rtg_Use3D (rtg_Dummy + 0x08)
  70.  
  71.  
  72. #define rtg_Workbench (rtg_Dummy + 0x09)
  73.  
  74. #define rtg_MouseMove (rtg_Dummy+ 0x0A)
  75.  
  76.  
  77. #define rtg_DeltaMove (rtg_Dummy+ 0x0B)
  78.  
  79.  
  80. #define rtg_PubScreenName (rtg_Dummy+ 0x0C)
  81.  
  82.  
  83. #define rtg_ChangeColors (rtg_Dummy+ 0x0D)
  84.  
  85.  
  86. struct RtgDimensionInfo
  87. {
  88.     ULONG Width;
  89.     ULONG Height;
  90. };
  91.  
  92. struct ScreenMode
  93. {
  94.     struct MinNode ScrNode;
  95.  
  96.  
  97.     STRPTR Name;
  98.     STRPTR Description;
  99.  
  100.  
  101.     ULONG GraphicsBoard;
  102.  
  103.  
  104.     ULONG ModeID;
  105.  
  106.  
  107.     BYTE Reserved[8];
  108.  
  109.  
  110.     ULONG MinWidth;
  111.  
  112.     ULONG MaxWidth;
  113.  
  114.  
  115.     ULONG MinHeight;
  116.  
  117.  
  118.     ULONG MaxHeight;
  119.  
  120.  
  121.     struct RtgDimensionInfo Default;
  122.  
  123.  
  124.     struct RtgDimensionInfo TextOverscan;
  125.  
  126.  
  127.     struct RtgDimensionInfo StandardOverscan;
  128.  
  129.  
  130.     struct RtgDimensionInfo MaxOverscan;
  131.  
  132.  
  133.     ULONG ChunkySupport;
  134.  
  135.  
  136.     ULONG PlanarSupport;
  137.  
  138.  
  139.  
  140.     ULONG PixelAspect;
  141.  
  142.  
  143.     ULONG VertScan;
  144.  
  145.  
  146.     ULONG HorScan;
  147.  
  148.  
  149.     ULONG PixelClock;
  150.  
  151.  
  152.     ULONG VertBlank;
  153.  
  154.  
  155.     ULONG Buffers;
  156.  
  157.  
  158.     UWORD BitsRed;
  159.  
  160.  
  161.  
  162.     UWORD BitsGreen;
  163.  
  164.  
  165.     UWORD BitsBlue;
  166.  
  167. };
  168.  
  169.  
  170. #define grd_Dummy TAG_USER
  171.  
  172. #define grd_Width (grd_Dummy + 0x01)
  173.  
  174.  
  175. #define grd_Height (grd_Dummy + 0x02)
  176.  
  177.  
  178. #define grd_PixelLayout (grd_Dummy + 0x03)
  179.  
  180.  
  181. #define grd_ColorSpace (grd_Dummy + 0x04)
  182.  
  183.  
  184. #define grd_Depth (grd_Dummy + 0x05)
  185.  
  186. #define grd_PlaneSize (grd_Dummy + 0x06)
  187.  
  188. #define grd_BytesPerRow (grd_Dummy + 0x07)
  189.  
  190. #define grd_MouseX (grd_Dummy + 0x08)
  191.  
  192.  
  193.  
  194. #define grd_MouseY (grd_Dummy + 0x09)
  195.  
  196. #define grd_BusSystem (grd_Dummy + 0x0A)
  197.  
  198. #define grd_3DChipset (grd_Dummy + 0x0B)
  199.  
  200.  
  201. #define grd_Z3 1
  202. #define grd_Z2 2
  203. #define grd_Custom 3
  204. #define grd_RGBPort 4
  205. #define grd_GVP 5
  206. #define grd_DDirect 6
  207. #define grd_Ateo 7
  208. #define grd_PCI 8
  209.  
  210.  
  211.  
  212. #define grd_PLANAR     0
  213. #define grd_PLANARI    1
  214. #define grd_CHUNKY     2
  215. #define grd_HICOL15    3
  216. #define grd_HICOL16    4
  217. #define grd_TRUECOL24  5
  218. #define grd_TRUECOL24P 6
  219. #define grd_TRUECOL32  7
  220. #define grd_GRAFFITI   8
  221. #define grd_TRUECOL32B 9
  222.  
  223.  
  224.  
  225. #define grd_Palette 0
  226. #define grd_RGB     1
  227. #define grd_BGR     2
  228. #define grd_RGBPC   3
  229. #define grd_BGRPC   4
  230.  
  231.  
  232. struct ScreenReq
  233. {
  234.     struct ScreenMode *ScreenMode;
  235.  
  236.  
  237.  
  238.     ULONG Width;
  239.  
  240.  
  241.  
  242.     ULONG Height;
  243.  
  244.  
  245.  
  246.     UWORD Depth;
  247.  
  248.  
  249.     UWORD Overscan;
  250.  
  251.  
  252.  
  253.     UBYTE Flags;
  254. };
  255.  
  256. struct ScreenReqList
  257. {
  258.  struct MinNode SRNode;
  259.  struct ScreenReq *req;
  260. };
  261.  
  262.  
  263.  
  264. #define sq_EHB          (1 << 0)
  265. #define sq_CHUNKYMODE   (1 << 1)
  266. #define sq_DEFAULTX     (1 << 2)
  267. #define sq_DEFAULTY     (1 << 3)
  268. #define sq_WORKBENCH    (1 << 4)
  269.  
  270.  
  271.  
  272. #define sq_NOOVERSCAN       0
  273. #define sq_TEXTOVERSCAN     1
  274. #define sq_STANDARDOVERSCAN 2
  275. #define sq_MAXOVERSCAN      3
  276.  
  277.  
  278.  
  279.  
  280. struct RtgScreen
  281. {
  282.     ULONG LibBase;
  283.     UWORD LibVersion;
  284.     UWORD Pad1;
  285.     ULONG GraphicsBoard;
  286.     BYTE  Reserved[20];
  287.     ULONG MouseX;
  288.     ULONG MouseY;
  289.     APTR  c2pcode;
  290.     APTR  c2pdata;
  291.     ULONG c2pcurr;
  292.     BYTE  c2pname[30];
  293. };
  294.  
  295. #endif
  296.  
  297.